package com.hupu.jrs.ui.pmlist

import com.hupu.jrs.bean.Pm
import com.hupu.jrs.ui.BasePresenter
import com.hupu.jrs.ui.BaseView

/**
 * Created by sll on 2016/5/11.
 */
interface PmListContract {

    interface View : BaseView {
        fun showLoading()

        fun hideLoading()

        fun renderPmList(pms: MutableList<Pm>)

        fun onRefreshCompleted()

        fun onLoadCompleted(haMore: Boolean)

        fun onError()

        fun onEmpty()

        fun showPmDetailUi(uid: String, name: String)
    }

    interface Presenter : BasePresenter<View> {
        fun onPmListReceive()

        fun onRefresh()

        fun onReload()

        fun onLoadMore()

        fun onPmListClick(pm: Pm)
    }
}
